﻿@using GTAuto.DAL.Entities
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<GTBrand> brandCol1 = ViewBag.brandCol1;
    List<GTBrand> brandCol2 = ViewBag.brandCol2;
    List<GTBrand> brandCol3 = ViewBag.brandCol3;


    List<GTBrand> brandCol1d = ViewBag.brandCol1d;
    List<GTBrand> brandCol2d = ViewBag.brandCol2d;
    List<GTBrand> brandCol3d = ViewBag.brandCol3d;

   
    
    
}
<div id="list">
    @Html.Partial("Controls/BreadCrumbs")
    @Html.Partial("Controls/Favorites")
</div>
<div id="main_left">
    @Html.Partial("TireSearch")
    @Html.Partial("DiscSearch")
</div>
<div id="main_center">
    <div class="shini_title">
        Шины</div>
    <div class="shini_menu">
        <ul>
            @foreach (var item in brandCol1)
            {
                <li><a href=@Url.Action("TireByBrand", "Tires", new { @id = @item.Id })>Шины @item.Name</a></li>
            }
        </ul>
        <ul>
            @foreach (var item in brandCol2)
            {
                <li><a href=@Url.Action("TireByBrand", "Tires", new { @id = @item.Id })>Шины @item.Name</a></li>
            }
        </ul>
        <ul>
            @foreach (var item in brandCol3)
            {
                <li><a href=@Url.Action("TireByBrand", "Tires", new { @id = @item.Id })>Шины @item.Name</a></li>
            }
        </ul>
        <div class="clear">
        </div>
    </div>
    <div class="shini_title">
        Диски</div>
    <div class="shini_menu">
        <ul>
            @foreach (var item in brandCol1d)
            {
                <li><a href=@Url.Action("DiscByBrand", "Discs", new { @id = @item.Id })>Диски @item.Name</a></li>
            }
        </ul>
        <ul>
            @foreach (var item in brandCol2d)
            {
                <li><a href=@Url.Action("DiscByBrand", "Discs", new { @id = @item.Id })>Диски @item.Name</a></li>
            }
        </ul>
        <ul>
            @foreach (var item in brandCol3d)
            {
                <li><a href=@Url.Action("DiscByBrand", "Discs", new { @id = @item.Id })>Диски @item.Name</a></li>
            }
        </ul>
        <div class="clear">
        </div>
    </div>
</div>
<div id="main_right">
    @Html.Partial("Controls/Bunner")
    @Html.Partial("Controls/Reklama")
</div>
